Class symantec.itools.db.beans.binding.editors.BindingWizardChooseComponentPanel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.db.beans.binding.editors.BindingWizardChooseComponentPanel

Object
   |
   +----Component
           |
           +----Container
                   |
                   +----JComponent
                           |
                           +----JPanel
                                   |
                                   +----WizardPanel
                                           |
                                           +----symantec.itools.db.beans.binding.editors.BindingWizardChooseComponentPanel

public class BindingWizardChooseComponentPanel
extends WizardPanel
implements ActionListener
This class is the "Choose a Component" page in the BindingWizard.

Version:
1.0 10/12/98
Author:
Hristo Tonev

Variable Index

 o bindingModelVObj
 o boundCompLibVObjs
 o boundProjVObjs
 o centerPanel
 o compLib
 o compLibRootVObjs
 o contentPanel
 o currentProject
 o existingCompButton
 o existingCompComboBox
 o existingCompPanel
 o existingCompTextArea
 o existingCompWorkPanel
 o jLabelVObj
 o jScrollPaneVObj
 o newCompButton
 o newCompComboBox
 o newCompLabelLabel
 o newCompLabelPanel
 o newCompLabelTextField
 o newCompPanel
 o newCompWorkPanel
 o noteTextArea
 o projRootVObjs
 o radioButtonsGroup
 o sliverImageLabel
 o sliverImagePanel
 o tableBindingModelVObj
 o titleTextArea
 o visualCafe

Constructor Index

 o symantec.itools.db.beans.binding.editors.BindingWizardChooseComponentPanel()
Default constructor
 o symantec.itools.db.beans.binding.editors.BindingWizardChooseComponentPanel(BindingWizardController)
The constructor that should be used in the wizard

Method Index

 o actionPerformed(ActionEvent)
 o bindExistingComponent()
This method will databind an already existing visual component It will generate ONLY BindingModel
 o cancel()
 o createContentPane()
 o createExistingCompPanel()
 o createNewCompPanel()
 o createNewComponent()
Add a new "databound" component This will create a new Component (may be a JScrollPane), BindingModel, and eventually a JLabel
 o createRadioButtons()
 o createSliverImagePanel()
 o entering()
 o exiting()
 o findDataBoundProjectComponents(VisualObject)
Build recursively the list with all "databound" components
 o findLastInsertedChild(VisualObject)
Helper method to find the last inserted child.
 o finish()
 o generateCode()
Generate the code for the new components
 o getNewY(VisualObject)
Helper method to find the Y for the component we are going to insert.
 o initControls()
 o introspectProject()
Introspects the current project to find all components that could be databound.
 o isDataBoundComponent(VisualObject)
 o isSupportedContainer(VisualObject)
 o main(String[])
 o setBindingModelBeanProperties(VisualObject, VisualObject, String)
 o setCustomProperty(VisualObject, String, String, Object, String)
Sets a property for the given VisualObject.
 o setObjectReferenceProperty(VisualObject, String, int)
Sets a property for the given VisualObject.
 o setProperty(VisualObject, String, String)
Sets a property for the given VisualObject.

Variables

 o bindingModelVObj
protected com.symantec.itools.vcafe.openapi.VisualObject bindingModelVObj
 o boundCompLibVObjs
protected java.util.Vector boundCompLibVObjs
 o boundProjVObjs
protected java.util.Vector boundProjVObjs
 o centerPanel
protected com.sun.java.swing.JPanel centerPanel
 o compLib
protected com.symantec.itools.vcafe.openapi.ComponentLibrary compLib
 o compLibRootVObjs
protected com.symantec.itools.vcafe.openapi.VisualObject[] compLibRootVObjs
 o contentPanel
protected com.sun.java.swing.JPanel contentPanel
 o currentProject
protected com.symantec.itools.vcafe.openapi.VisualProject currentProject
 o existingCompButton
protected com.sun.java.swing.JRadioButton existingCompButton
 o existingCompComboBox
protected com.sun.java.swing.JComboBox existingCompComboBox
 o existingCompPanel
protected com.sun.java.swing.JPanel existingCompPanel
 o existingCompTextArea
protected com.sun.java.swing.JTextArea existingCompTextArea
 o existingCompWorkPanel
protected com.sun.java.swing.JPanel existingCompWorkPanel
 o jLabelVObj
protected com.symantec.itools.vcafe.openapi.VisualObject jLabelVObj
 o jScrollPaneVObj
protected com.symantec.itools.vcafe.openapi.VisualObject jScrollPaneVObj
 o newCompButton
protected com.sun.java.swing.JRadioButton newCompButton
 o newCompComboBox
protected com.sun.java.swing.JComboBox newCompComboBox
 o newCompLabelLabel
protected com.sun.java.swing.JLabel newCompLabelLabel
 o newCompLabelPanel
protected com.sun.java.swing.JPanel newCompLabelPanel
 o newCompLabelTextField
protected com.sun.java.swing.JTextField newCompLabelTextField
 o newCompPanel
protected com.sun.java.swing.JPanel newCompPanel
 o newCompWorkPanel
protected com.sun.java.swing.JPanel newCompWorkPanel
 o noteTextArea
protected com.sun.java.swing.JTextArea noteTextArea
 o projRootVObjs
protected com.symantec.itools.vcafe.openapi.VisualObject[] projRootVObjs
 o radioButtonsGroup
protected com.sun.java.swing.ButtonGroup radioButtonsGroup
 o sliverImageLabel
protected com.sun.java.swing.JLabel sliverImageLabel
 o sliverImagePanel
protected com.sun.java.swing.JPanel sliverImagePanel
 o tableBindingModelVObj
protected com.symantec.itools.vcafe.openapi.VisualObject tableBindingModelVObj
 o titleTextArea
protected com.sun.java.swing.JTextArea titleTextArea
 o visualCafe
protected com.symantec.itools.vcafe.openapi.VisualCafe visualCafe

Constructors

 o BindingWizardChooseComponentPanel
public BindingWizardChooseComponentPanel()
Default constructor

 o BindingWizardChooseComponentPanel
public BindingWizardChooseComponentPanel(BindingWizardController controller)
The constructor that should be used in the wizard

Methods

 o actionPerformed
public void actionPerformed(ActionEvent evt)
 o bindExistingComponent
protected void bindExistingComponent()
This method will databind an already existing visual component It will generate ONLY BindingModel

 o cancel
public void cancel()

Overrides:
cancel in class WizardPanel
 o createContentPane
protected void createContentPane()
 o createExistingCompPanel
protected void createExistingCompPanel()
 o createNewCompPanel
protected void createNewCompPanel()
 o createNewComponent
protected void createNewComponent()
Add a new "databound" component This will create a new Component (may be a JScrollPane), BindingModel, and eventually a JLabel

 o createRadioButtons
protected void createRadioButtons()
 o createSliverImagePanel
protected void createSliverImagePanel()
 o entering
public void entering()

Overrides:
entering in class WizardPanel
 o exiting
public boolean exiting()

Overrides:
exiting in class WizardPanel
 o findDataBoundProjectComponents
protected void findDataBoundProjectComponents(VisualObject vObj)
Build recursively the list with all "databound" components

 o findLastInsertedChild
public static com.symantec.itools.vcafe.openapi.VisualObject findLastInsertedChild(VisualObject parentVObj)
Helper method to find the last inserted child. This method checks ONLY the first level in the hierarchy.

Parameters:
parentVObj - is the parent VisualObject
Returns:
a reference to the last inserted child
 o finish
public void finish()

Overrides:
finish in class WizardPanel
 o generateCode
protected void generateCode()
Generate the code for the new components

 o getNewY
public static int getNewY(VisualObject parentVObj)
Helper method to find the Y for the component we are going to insert. This method checks ONLY the first level in the hierarchy.

Parameters:
parentVObj - is the parent VisualObject
Returns:
the Y coordinate for the new component
 o initControls
protected void initControls()
 o introspectProject
protected void introspectProject()
Introspects the current project to find all components that could be databound. It finds the aready bound components as well.

 o isDataBoundComponent
public static boolean isDataBoundComponent(VisualObject vObj)

Returns:
true if the component is an instance of one of the JFC component that we can databing
 o isSupportedContainer
public static boolean isSupportedContainer(VisualObject visualObject)

Returns:
true if the component is an instance of one of the Containers we can insert into
 o main
public static void main(String[] args)
 o setBindingModelBeanProperties
public static void setBindingModelBeanProperties(VisualObject bindingModelVObj,
                                                 VisualObject vCompVObj,
                                                 String bindingName)

Parameters:
visualObject - is the object we are setting property to
vCompVObj - is the VisualObject of the visual component we are binding
bindingName - in the binding name to be used
 o setCustomProperty
public static void setCustomProperty(VisualObject visualObject,
                                     String propName,
                                     String strValue,
                                     Object objValue,
                                     String javaInitStrValue)
Sets a property for the given VisualObject. If the property is not found, nothing is changed.

Parameters:
visualObject, - the object to set the propery of.
propName - the property name.
strValue - the new value that should be set thru setAsText()
objValue - the new value that should be set thru setValue()
javaInitStrValue - the new value that should be returned by getJavaInitializationString()
 o setObjectReferenceProperty
public static void setObjectReferenceProperty(VisualObject visualObject,
                                              String propName,
                                              int refVisualObjectID)
Sets a property for the given VisualObject. If the property is not found, nothing is changed.

Parameters:
visualObject, - the object to set the propery of.
propName - the property name.
refVisualObjectID - the object ID of the VisualObject this property refers to or DEFAULT_OBJECT_REFERENCED or NODEFAULT_OBJECT_REFERENCED.
 o setProperty
public static void setProperty(VisualObject visualObject,
                               String propName,
                               String newValue)
Sets a property for the given VisualObject. If the property is not found, nothing is changed.

Parameters:
visualObject, - the object to set the propery of.
propName - the property name.
newValue - the new value for the property.

All Packages  Class Hierarchy  This Package  Previous  Next  Index